﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
  <xsl:output method="xml" indent="yes" encoding="utf-8" media-type="text/xml" />
  <xsl:param name="relrootpath"/>
  <xsl:param name="eventname" />

  <xsl:template match="/Context">

    <Transform>
      <xsl:apply-templates select="Event[@Name=$eventname]">
      </xsl:apply-templates>
    </Transform>
  </xsl:template>

  <xsl:template match="Event[@Name='ContactApproved']">
    <Content>
      <div class="left">
        <control kind="useravatar" AvatarType="Thumbnail" ShowNickName="false">
          <xsl:attribute name="UserId" >
            <xsl:value-of select="RequesteeUserId"/>
          </xsl:attribute>
        </control>

      </div>
      <div>
        <control kind="userlink">
          <xsl:attribute name="UserId">
            <xsl:value-of select="RequesteeUserId"/>
          </xsl:attribute>
        </control>
        <xsl:text>已经同意了你的好友请求。</xsl:text>
      </div>
    </Content>
  </xsl:template>

</xsl:stylesheet>
